<!-- 导航侧栏 -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <ul class="sidebar-menu">
            <li class="header"></li>
            <@menu_root_list>
            <#list menus as rootMenu>
            <#if rootMenu.type==0 && (Session.session_admin.role.isSystem || (!Session.session_admin.role.isSystem && intersection(rootMenu.childrenUrls,Session.session_admin.permissions)))>
            <li class="treeview">
                <a href="#">
		            <i class="fa ${rootMenu.icon}"></i> <span>${rootMenu.name}</span>
		            <span class="pull-right-container">
		                <i class="fa fa-angle-left pull-right"></i>
		            </span>
		        </a>
                <ul class="treeview-menu">
                	<#list rootMenu.children as subMenu>
                	<#if Session.session_admin.role.isSystem || (!Session.session_admin.role.isSystem && Session.session_admin.permissions.contains(subMenu.url))>
                    <li id="admin-${subMenu.code}"><a href="${base}${subMenu.url}"><i class="fa fa-circle-o"></i> ${subMenu.name}</a></li>
                    </#if>
                    </#list>
                </ul>
            </li>
            <#elseif rootMenu.type==1>
            <#if Session.session_admin.role.isSystem || (!Session.session_admin.role.isSystem && Session.session_admin.permissions.contains(rootMenu.url))>
            <li id="admin-${rootMenu.code}"><a href="${base}${rootMenu.url}"><i class="fa ${rootMenu.icon}"></i> <span>${rootMenu.name}</span></a></li>
            </#if>
            </#if>
            </#list>
            </@menu_root_list>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>
<!-- 导航侧栏 /-->